<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddColumnNotifyTimeToCruiseCheckSelfDetail extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('cruise_check_self_detail', function (Blueprint $table) {
            //
            $table->unsignedInteger('notifyTime')->default(0)->comment('通知时间');
            $table->index('notifyTime', 'idx_notifyTime');
            $table->index('updatedAt', 'idx_updatedAt');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('cruise_check_self_detail', function (Blueprint $table) {
            //
        });
    }
}
